package gazzera.node.core;

import java.io.*;
import java.util.*;

import com.sleepycat.persist.model.*;

@Entity
public class Person implements Serializable {

	
	private static final long serialVersionUID = -6506129845103796580L;
	
	@PrimaryKey
	public String hash;
	public String nickname;
	public FriendStatus status;
	public int port;
	public String host;
	public OnlineStatus onlineStatus;
	public List<String> groups = new ArrayList<String>();
	
	public String getFullGid()
	{
		return nickname+"@"+hash+ (host == null ? "" : "@"+host+":"+port);
	}
	
}
